Install the timeout before changing the value, so that a ::value_changed
authorMatthias Clasen <maclas@gmx.de>
Fri, 16 Jul 2004 00:38:06 +0000 (00:38 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 16 Jul 2004 00:38:06 +0000 (00:38 +0000)
Thu Jul 15 20:31:28 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkspinbutton.c (start_spinning): Install the timeout
before changing the value, so that a ::value_changed handler
has a chance to remove it.  (#122427, Elke Meier)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkspinbutton.c

index e041a280f0f6725c207083d6eb749644e80afefe..690681f5c5d35fd0f45c27b12125756faafb531f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
+Thu Jul 15 20:31:28 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkspinbutton.c (start_spinning): Install the timeout
+       before changing the value, so that a ::value_changed handler
+       has a chance to remove it.  (#122427, Elke Meier)
+
 Thu Jul 15 19:20:05 2004  Matthias Clasen  <maclas@gmx.de>
 
-       * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
+       * gdk/x11/gdkgtk+/im-x11.c (_gdk_x11_initialize_locale): 
        * gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot'
        instead of 'can not' in messages.  (#144226, Morten Welinder)
 
index e041a280f0f6725c207083d6eb749644e80afefe..690681f5c5d35fd0f45c27b12125756faafb531f 100644 (file)
@@ -1,6 +1,12 @@
+Thu Jul 15 20:31:28 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkspinbutton.c (start_spinning): Install the timeout
+       before changing the value, so that a ::value_changed handler
+       has a chance to remove it.  (#122427, Elke Meier)
+
 Thu Jul 15 19:20:05 2004  Matthias Clasen  <maclas@gmx.de>
 
-       * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
+       * gdk/x11/gdkgtk+/im-x11.c (_gdk_x11_initialize_locale): 
        * gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot'
        instead of 'can not' in messages.  (#144226, Morten Welinder)
 
index e041a280f0f6725c207083d6eb749644e80afefe..690681f5c5d35fd0f45c27b12125756faafb531f 100644 (file)
@@ -1,6 +1,12 @@
+Thu Jul 15 20:31:28 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkspinbutton.c (start_spinning): Install the timeout
+       before changing the value, so that a ::value_changed handler
+       has a chance to remove it.  (#122427, Elke Meier)
+
 Thu Jul 15 19:20:05 2004  Matthias Clasen  <maclas@gmx.de>
 
-       * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
+       * gdk/x11/gdkgtk+/im-x11.c (_gdk_x11_initialize_locale): 
        * gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot'
        instead of 'can not' in messages.  (#144226, Morten Welinder)
 
index e041a280f0f6725c207083d6eb749644e80afefe..690681f5c5d35fd0f45c27b12125756faafb531f 100644 (file)
@@ -1,6 +1,12 @@
+Thu Jul 15 20:31:28 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkspinbutton.c (start_spinning): Install the timeout
+       before changing the value, so that a ::value_changed handler
+       has a chance to remove it.  (#122427, Elke Meier)
+
 Thu Jul 15 19:20:05 2004  Matthias Clasen  <maclas@gmx.de>
 
-       * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
+       * gdk/x11/gdkgtk+/im-x11.c (_gdk_x11_initialize_locale): 
        * gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot'
        instead of 'can not' in messages.  (#144226, Morten Welinder)
 
index 2a062115b8a05581b0166deb05db73984c072e30..56db1715d113c32ab62b951cd58d9437a6a55a95 100644 (file)
@@ -1077,7 +1077,6 @@ start_spinning (GtkSpinButton *spin,
   g_return_if_fail (click_child == GTK_ARROW_UP || click_child == GTK_ARROW_DOWN);
   
   spin->click_child = click_child;
-  gtk_spin_button_real_spin (spin, click_child == GTK_ARROW_UP ? step : -step);
   
   if (!spin->timer)
     {
@@ -1087,6 +1086,7 @@ start_spinning (GtkSpinButton *spin,
                                   (GSourceFunc) gtk_spin_button_timer, 
                                   (gpointer) spin);
     }
+  gtk_spin_button_real_spin (spin, click_child == GTK_ARROW_UP ? step : -step);
 
   spin_button_redraw (spin);
 }